﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using MixScriptWeb.control;
using MixScriptWeb.Share;
namespace MixScriptWeb.Member
{
    public partial class fListUser : cCommonWeb,IMIxCommon //System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
             try
            {

                if (!Page.IsPostBack)
                {
                    addFindClickAttribute(this, new MixScriptTB[] {txtEmpID,txtuser }, new string[] { "SRCEMPID","SRCUSER" });
                    
                 
                    string[] sheadertext = new string[] { "User ID", "NIK","Nama"};
                    string[] sdatavalue = new string[] {  "userid","nik","nama"};
                 
                    //initGvColumn(gvdetail, sheadertext, sdatavalue, new int[] {0}, "{0:dd-MM-yyyy}");
                    initGvColumn(gvdetail,sheadertext,sdatavalue);
                    //MultiView1.SetActiveView(View1);
                    //btnCreateDN.Visible = false;
                }
                mn = (MainMenu)this.Master;
                hideStatusBar();
                // oReff = new cReferences();
                // if(gvdetail.Rows.Count>0)

        }
             catch (Exception ex)
             {
                 if (mn == null)
                 {
                     mn = (MainMenu)this.Master;
                 }
                 ShowStatusBar(ex.Message, msgType.msgError);
             }


        }

        protected void btnSave_Click(object sender, EventArgs e)
        {
            try
            {

            }
            catch (Exception ex)
            {

                ShowStatusBar(ex.Message);
            }

        }

        protected void btnDelete_Click(object sender, EventArgs e)
        {

        }

        #region IMIxCommon Members

        public bool isvalid()
        {
            return true;
        }

        #endregion
    }
}